package com.atguigu.spzx.model.entity.system;

import com.atguigu.spzx.model.entity.base.BaseEntity;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class SysMenu extends BaseEntity {

    private Long parentId;
    private String title;
    private String component;
    private Integer sortValue;
    private Integer status;

    //扩展属性：数据库表中不存在该属性，用来接收自己下一级菜单的集合
    private List<SysMenu> children;// = new ArrayList<>();
}
